<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <title>考勤审批流程设置</title>
</head>

<body>
  <div id="app">
    <div class="attendance-approval-setting">
      <el-tabs v-model="activeMenu" class="full-tabs">
        <el-tab-pane v-for="menu in menus" :key="menu.name" :label="menu.label" :name="menu.name">
          <component v-if="activeMenu===menu.name" :is="menu.url" class="menu-item"></component>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</body>

<script src="./myJs/importFile.js"></script>
<script>
  importFile([
    "/vueSystem/components/css/searchBtnView.css",
    "./attendanceMgr/approvalSetting/css/approvalProcessSetting.css",
    "./attendanceMgr/approvalSetting/css/commonApprovalForm.css",
    "./attendanceMgr/approvalSetting/css/commonProcessSetting.css",
    "./attendanceMgr/approvalSetting/css/fixedApprovalForm.css",
    "./attendanceMgr/approvalSetting/css/fixedProcessSetting.css"
  ], [
    "/vueSystem/i18n/index.js",
    "/vueSystem/components/searchBtnView.js",
    "/vueSystem/models/baseModel.js",
    "/vueSystem/mixins/tablePaginationMixin.js"
  ]);

</script>
<script src="./attendanceMgr/approvalSetting/approvalProcessSetting.js"></script>
<script src="./attendanceMgr/approvalSetting/searchForm.js"></script>
<script src="./attendanceMgr/approvalSetting/commonApprovalForm.js"></script>
<script src="./attendanceMgr/approvalSetting/commonProcessSetting.js"></script>
<script src="./attendanceMgr/approvalSetting/fixedApprovalForm.js"></script>
<script src="./attendanceMgr/approvalSetting/fixedProcessSetting.js"></script>

<script>
  var app = new Vue({
    el: '#app',
    data: function () {
      return {
        activeMenu: 'commonProcessSetting',
        menus: [{
          label: '通用审批流程',
          name: 'commonProcessSetting',
          url: 'common-process-setting'
        }, {
          label: '固定审批流程',
          name: 'fixedProcessSetting',
          url: 'fixed-process-setting'
        }]
      };
    },

    components: {
      CommonProcessSetting: CommonProcessSetting,
      FixedProcessSetting: FixedProcessSetting
    }
  });

</script>

<style>
  .attendance-approval-setting {
    height: 100%;
    padding-left: 20px;
  }

</style>

</html>
